Skip to content

ci: split Quality into parallel static, unit and sharded e2e jobs - #501

Merged
V3RON merged 3 commits into
mainfrom
chore/ci-split-quality
Oct 13, 2026
Merged

V3RON merged 3 commits into
mainfrom
chore/ci-split-quality

Conversation

@V3RON

@V3RON V3RON commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • .github/workflows/ci.yml: the Quality job ran pnpm check serially. Its steps now run as parallel jobs:
    • Static checks: typecheck, typecheck:e2e, lint, lint:comments, format:check (keeps fetch-depth: 0 for the comment lint).
    • Unit tests: pnpm run test:unit.
    • E2E (1/3), (2/3), (3/3): pnpm run build && pnpm run build:e2e, then vitest run --project e2e --tags-filter='!slow' --shard=i/3. fail-fast: false, so one red shard does not hide the others.
    • Quality still exists. It needs all of the above, runs if: always(), and fails unless every one of them succeeded or was skipped. The required check keeps its meaning.
  • .agents/scripts/merge-pr.sh: when it decides whether red CI may be re-run, it skips the Quality check. Quality fails when a job it needs was cancelled, so judging it would call a cancelled job "this PR's to fix". The jobs it needs are checks of their own and are judged directly. src/merge-pr.test.ts: the fake gh now models the split (one red job plus the Quality check that needs it); the cancelled-job test fails without the skip.
  • docs/internal/agent-rules/toolchain.md and docs/internal/DELIVERY.md describe the split.
  • pnpm check is unchanged.

ci-failures.mjs needs no change: it reads --log-failed for the whole run, which covers every shard.

Before

CI run 38355362705 (PR #497): Quality took about 5 min. Static checks about 19 s, unit tests 45 s, then build and the e2e project 228 s, one after another.

After

CI run 38359780444 on this PR, job wall times:

Job Time
Static checks 32 s
Unit tests 61 s
E2E (1/3) 103 s
E2E (2/3) 117 s
E2E (3/3) 102 s
Quality (sums them up) 4 s, done 124 s after the run started

Before: Quality 312 s. After: 124 s. Console (194 s) is now the slowest check.

The shards are close. Shard 3 holds warm-targets.test.ts (69 s), most of it one test that waits out a fixed 60 s warm-pool retry delay.

Review

Spec review: skipped. Code review: 2 blocking, 1 fixed, 1 notes. Claims review: 0 blocking, 0 fixed, 0 notes.

Rejected:

  • code: .github/workflows/ci.yml:100 CI copies pnpm check's steps and the e2e vitest filter, so editing one leaves the other stale — not blocking: splitting jobs repeats the commands, and a comment says to keep them in step

Rounds: 2. Tokens: n/a.

Written by an agent.

V3RON added 3 commits October 13, 2026 08:51
Quality ran pnpm check serially in ~5 min. Its steps now run as parallel
jobs (static checks, unit tests, e2e in three shards), and a job still
named Quality needs them all and fails unless each passed or was skipped,
so the required check keeps its meaning. merge-pr.sh leaves that summing
job out when it decides whether red CI is re-runnable.
…can prove it

The fake gh in merge-pr.test.ts ignores -q filters, so a jq filter on the check name broke the fake's matching and no test could prove it. The gate now reads each red check's name and skips Quality itself; the fake models the split CI (one red job plus the Quality check that needs it).
@V3RON

V3RON commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Review notes

Not blocking, not verified. Each is one reviewer's claim.

  • code: .agents/scripts/merge-pr.sh:67 a Static checks failure is judged from the whole run's --log-failed, so lint failing next to a flaky e2e failure gets one wasted re-run before the gate refuses

Written by an agent.

@V3RON
V3RON merged commit ddf7339 into main Oct 13, 2026
31 of 32 checks passed
@V3RON
V3RON deleted the chore/ci-split-quality branch November 6, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant